﻿<%@ Page Language="C#" MasterPageFile="~/admin/AdminTemplate.master" AutoEventWireup="true" CodeFile="UpdateAccount.aspx.cs" Inherits="UpdateAccount" Title="Admin" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v7.2, Version=7.2.2.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v7.2, Version=7.2.2.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Panel ID="Panel1" runat="server" ForeColor="White" GroupingText="Cập nhật thông tin tài khoản"
        Height="100%" HorizontalAlign="Center" Width="95%">
        <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" Width="399px" KeyFieldName="UserID" AutoGenerateColumns="False" OnRowUpdating="ASPxGridView1_RowUpdating" EnableViewState="False">
            <SettingsPager PageSize="5">
            </SettingsPager>
            <Columns>
                <dxwgv:GridViewDataTextColumn Caption="ID" FieldName="UserID" ReadOnly="True" UnboundType="Integer"
                    VisibleIndex="0" SortIndex="0" SortOrder="Ascending">
                    <EditFormSettings Visible="False" />
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn Caption="T&#234;n " FieldName="UserName" ReadOnly="True"
                    UnboundType="String" VisibleIndex="1">
                    <EditFormSettings Visible="False" />
                    <Settings AutoFilterCondition="Contains" />
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataButtonEditColumn Caption="Số tiền" FieldName="Account" UnboundType="Integer"
                    VisibleIndex="2">
                    <PropertiesButtonEdit>
                        <Buttons>
                            <dxe:EditButton ImagePosition="Right" Text="Sửa" Width="12px">
                            </dxe:EditButton>
                        </Buttons>
                        <ButtonStyle BackColor="Black">
                        </ButtonStyle>
                        <ValidationSettings>
                            <RegularExpression ValidationExpression="\d+" />
                        </ValidationSettings>
                    </PropertiesButtonEdit>
                </dxwgv:GridViewDataButtonEditColumn>
                <dxwgv:GridViewDataHyperLinkColumn Caption="#" FieldName="UserID" VisibleIndex="3">
                    <PropertiesHyperLinkEdit NavigateUrlFormatString="UpdateAccount.aspx?id={0}" Text="Sửa"
                        TextFormatString="Sửa">
                    </PropertiesHyperLinkEdit>
                </dxwgv:GridViewDataHyperLinkColumn>
            </Columns>
            <Settings ShowFilterRow="True" />
            
            
        </dxwgv:ASPxGridView>
    </asp:Panel>
    <asp:Panel ID="Panel2" runat="server" ForeColor="White" GroupingText="Thông tin chi tiết"
        Width="95%">
        <table width="100%">
            <tr>
                <td style="width: 221px" align="left">
                    Tên tư vấn viên :</td>
                <td align="left">
                    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label></td>
              
            </tr>
            <tr>
                <td style="width: 221px" align="left">
                    Giới tính :</td>
                <td align="left">
                    <asp:Label ID="Label2" runat="server" Text="Label"></asp:Label></td>
            </tr>
            <tr>
                <td style="width: 221px" align="left">
                    Email:</td>
                <td align="left">
                    <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label></td>
                
            </tr>
            <tr>
                <td style="width: 221px; height: 22px;" align="left">
                    Số căn cước</td>
                <td style="height: 22px" align="left">
                    <asp:Label ID="Label4" runat="server" Text="Label"></asp:Label></td>
                
            </tr>
            <tr>
                <td style="width: 221px" align="left">
                    Số tiền hiện có :</td>
                <td align="left">
                    <asp:Label ID="Label5" runat="server" Text="Label"></asp:Label></td>
                
            </tr>
            <tr>
                <td style="width: 221px" align="left">
                    Số tiền rút :</td>
                <td align="left">
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox></td>
                
            </tr>
            <tr>
                <td align="left" style="width: 221px; height: 65px">
                    Ghi chú:</td>
                <td align="left" style="height: 65px">
                    <asp:TextBox ID="txtComment" runat="server" MaxLength="50" Rows="3" TextMode="MultiLine"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 221px; height: 65px;" align="left">
                    <asp:HiddenField ID="HiddenField1" runat="server" Visible="False" />
                    <asp:HiddenField ID="sotienhienco" runat="server" Value="132424" />
                </td>
                <td align="left" style="height: 65px">
                    <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="TextBox1"
                        ErrorMessage="* Bạn phải nhập số tiền không vượt quá số tiền "
                        MinimumValue="0" Display="Dynamic" Type="Double" MaximumValue="99999999999999999"></asp:RangeValidator>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1"
                        ErrorMessage="* Bạn phải nhập ô số tiền mới"></asp:RequiredFieldValidator></td>
                
            </tr>
            <tr>
                <td style="width: 221px; height: 13px;">
                    &nbsp;</td>
                <td style="height: 13px" align="left">
                    <asp:CheckBox ID="cbKiemtra" runat="server" Text="Đã xác thực *" OnCheckedChanged="cbKiemtra_CheckedChanged" ForeColor="Red" /></td>
                
            </tr>
            <tr>
                <td style="width: 221px">
                    <asp:Label ID="Label6" runat="server" ForeColor="Red"></asp:Label></td>
                <td align="left">
                    <asp:Button ID="btEdit" runat="server" Text="Sửa" Width="119px" OnClick="btEdit_Click" /></td>
                
            </tr>
        </table>
    </asp:Panel>

</asp:Content>

